package com.phone.rest.modular.bussiness.controller.backend;

import com.baomidou.mybatisplus.plugins.Page;
import com.phone.core.base.controller.BaseController;
import com.phone.core.support.PageKit;
import com.phone.rest.common.persistence.model.Member;
import com.phone.rest.modular.bussiness.service.IMemberSv;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by zengzr on 2017/10/20.
 */
@RestController("MemberControllerB")
@RequestMapping("backend")
public class MemberController extends BaseController {
    @Autowired
    IMemberSv memberSv;


    /**
        * @Description: 用户基本资料
        * @author zengzr
        * @date 2017/10/20
        * @version V1.0
        */
    @RequestMapping("member")
    public Object memberLs(Member member){
        Page<Member> page= (Page<Member>) new PageKit().defaultPage();
        List<Member> members=memberSv.selectMembers(page,member);
        page.setRecords(members);
        return super.packForBT(page);
    }

    /**
        * @Description: 收藏夹
        * @author zengzr
        * @date 2017/10/20
        * @version V1.0
        */



    /**
        * @Description: 积分、优惠券
        * @author zengzr
        * @date 2017/10/20
        * @version V1.0
        */
}
